﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shop.Master" AutoEventWireup="true" CodeBehind="CheckoutStep1.aspx.cs" Inherits="ShopNet.CheckoutStep1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">

    $(document).ready(function () {
        if ($(".nomeendereco").val() == "sem nome") {
            $(".nomeendereco").focus(function () {
                $(".nomeendereco").val("");
                $(".nomeendereco").unbind("focus");
            });
        }

        //$(".error").prevUntil("div").addClass("form-txt-error");

    });

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">

<div id="content_top"></div>
<div id="content_middle">
    <h3>Cadastro</h3>
    <fieldset>
        <legend>Entre comseus dados pessoais</legend>
        <div class="grid-7-12">
        <p><label class="info-label">Nome:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbNome" runat="server" MaxLength="250" CssClass="input_field_simple  size-big"></asp:TextBox></p>
        </div>
        <div class="grid-5-12">
        <p><label class="info-label">CPF(apenas Números):<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbCPF" runat="server" MaxLength="11" CssClass="input_field_simple"></asp:TextBox></p>
        </div>
        <div class="grid-2-12">
        <p><label class="info-label">Tel:(DDD):<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbDdd" runat="server" MaxLength="3" CssClass="input_field_simple size-medium" ></asp:TextBox></p>
        </div>
        <div class="grid-5-12">
        <p><label class="info-label">Tel:(Número):<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbTel" runat="server" MaxLength="8" CssClass="input_field_simple size-medium"></asp:TextBox></p>
        </div>
        <p>&nbsp;</p>
    </fieldset>
    <p>&nbsp;</p>
    <fieldset>
        <legend>Informe seu Endereço</legend>
        <div class="grid-4-12">
        <p><label class="info-label">Endereço:</label></p>
        <p><asp:DropDownList ID="ddlEnd" runat="server" AutoPostBack="true" CssClass="select_field" OnSelectedIndexChanged="ddlEnd_Indexchange"></asp:DropDownList></p>
        </div>
        <div class="grid-6-12">
        <p><label class="info-label">Salvar Como:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbNomeEndereco" runat="server" MaxLength="50" CssClass="input_field_simple size-medium" Text=""></asp:TextBox></p>
        </div>
        <div class="grid-6-12">
        <p><label class="info-label">Rua/Av.:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbEndereco" runat="server" MaxLength="250" CssClass="input_field_simple size-full"></asp:TextBox></p>
        </div>
        <div class="grid-3-12">
        <p><label class="info-label">Número:</label></p>
        <p><asp:TextBox ID="tbNumero" runat="server" MaxLength="50" CssClass="input_field_simple size-big"></asp:TextBox></p>
        </div>
        <div class="grid-3-12">
        <p><label class="info-label">Complemento:</label></p>
        <p><asp:TextBox ID="tbComplemento" runat="server" MaxLength="50" CssClass="input_field_simple size-big"></asp:TextBox></p>
        </div>
        <div class="grid-4-12">
        <p><label class="info-label">Bairro:</label></p>
        <p><asp:TextBox ID="tbBairro" runat="server" MaxLength="50" CssClass="form-txt"></asp:TextBox></p>
        </div>
        <div class="grid-4-12">
        <p><label class="info-label">Estado:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:DropDownList ID="ddlUf" runat="server" OnSelectedIndexChanged="ddlUf_IndexChange" AutoPostBack="true" CssClass="select_field"></asp:DropDownList></p>
        </div>
        <div class="grid-8-12">
        <p><label class="info-label">Cidade:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:DropDownList ID="ddlCidade" runat="server" CssClass="select_field "></asp:DropDownList></p>
        </div>
        <div class="grid-8-12">
        <p><label class="info-label">C.E.P.:<em class="product_box_unavaible_color">*</em></label></p>
        <p><asp:TextBox ID="tbCep" runat="server" MaxLength="9" CssClass="input_field_simple size-medium"></asp:TextBox>
        <a target="_blank" href="http://www.buscacep.correios.com.br/servicos/dnec/index.do">Correios</a></p>
        </div>
        <div class="grid-12-12 ">
        <p><asp:Button ID="bContinuar" runat="server" Text="Continuar" CssClass="submit_btn" OnClick="bcontinuar_Click" /></p>
        </div>
    </fieldset>
</div>
<div id="content_bottom"></div>
</asp:Content>
